package com.aos.erp.schools.model.coach;

import com.aos.erp.schools.enums.student.school.CoachSex;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


@Getter
@Setter
@TableName("T_COACH")
public class ShowCoachVo implements Serializable {
	private static final long serialVersionUID = 1L;

    @ApiModelProperty("序号")
    private Long id;

    @ApiModelProperty("教练编号")
    private String coachNumber;


    @ApiModelProperty("性别   男:1;女:2;  未知：3")
    private CoachSex sex;

    @ApiModelProperty("姓名")
    private String name;


    @ApiModelProperty("证件号码")
    private String idnum;


    @ApiModelProperty("手机号码")
    private String phone;


    @ApiModelProperty("培训科目(1：科目一  ，2：科目二，3：科目三  ，4：科目四）  多选用,隔开   例：2,3")
    private String subject;


    @ApiModelProperty("微信号")
    private String wechat;


    @ApiModelProperty("培训车型  多选  ,隔开 例：C1,C2")
    private String trainCartype;


    @ApiModelProperty("教练头像")
    private long coachHead ;


    @ApiModelProperty("创建时间")
    private Date created ;

    @ApiModelProperty("修改时间")
    private Date updated ;

    @Override
    public String toString() {
        return "ShowCoachVo{" +
                "coachNumber='" + coachNumber + '\'' +
                ", sex=" + sex +
                ", name='" + name + '\'' +
                ", idnum='" + idnum + '\'' +
                ", phone='" + phone + '\'' +
                ", subject='" + subject + '\'' +
                ", wechat='" + wechat + '\'' +
                ", trainCartype='" + trainCartype + '\'' +
                ", coachHead=" + coachHead +
                ", created=" + created +
                ", updated=" + updated +
                '}';
    }
    public String getSexName() {
        return sex.getDesc();
    }
}
